package com.longzz.util;

import org.springframework.stereotype.Component;

/**
 * Created by longzzz on 2018/6/27.
 */
@Component
public class DateUtil {

    public String danmuFormateDate(String time){
        int newTime = (int)Float.parseFloat(time);
        int m = newTime/60;
        int s = newTime-m*60;
        return m+":"+((s<10)?("0"+s):s);
    }

}
